package com.zhao.dao;

import com.zhao.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserDao {
    List<User> findAll();

    User findById(String id);

    void deleteUserById(String id);

    void updateUserById(String id);

    void addUser(@Param("user") User user);

    List<Map<String, Object>> getUserAndPosition(String id);
}
